-- GENERATED SPELL FOR [Laughing Skull Legionnaire] --


function spell0_17626(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_17626', 586, 1)
end

function spell1_17626(pUnit, Event) --@Uppercut,n/a--
pUnit:FullCastSpellOnTarget(10966,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17626', 588, 1)
end

function Sorts_17626(pUnit, Event)
local choix_sorts_17626 = math.random(0, 1)
if choix_sorts_17626 == 0 then
pUnit:RegisterEvent('spell0_17626', 1, 1)
end
if choix_sorts_17626 == 1 then
pUnit:RegisterEvent('spell1_17626', 1, 1)
end
end

function mob17626_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17626', math.random(1500, 3000), 1)
end

function mob17626_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17626_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17626_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17626, 1, 'mob17626_Action')
RegisterUnitEvent(17626, 2, 'mob17626_Leave')
RegisterUnitEvent(17626, 3, 'mob17626_Kill')
RegisterUnitEvent(17626, 4, 'mob17626_Die')
